.class public Lcom/brixd/android/swipeback/lib/ViewDragHelper;
.super Ljava/lang/Object;
.source "ViewDragHelper.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;
    }
.end annotation


# static fields
.field private static final BASE_SETTLE_DURATION:I = 0x100

.field public static final DIRECTION_ALL:I = 0x3

.field public static final DIRECTION_HORIZONTAL:I = 0x1

.field public static final DIRECTION_VERTICAL:I = 0x2

.field public static final EDGE_ALL:I = 0xf

.field public static final EDGE_BOTTOM:I = 0x8

.field public static final EDGE_LEFT:I = 0x1

.field public static final EDGE_RIGHT:I = 0x2

.field public static final EDGE_SIZE:I = 0x14

.field public static final EDGE_TOP:I = 0x4

.field public static final INVALID_POINTER:I = -0x1

.field private static final MAX_SETTLE_DURATION:I = 0x258

.field public static final STATE_DRAGGING:I = 0x1

.field public static final STATE_IDLE:I = 0x0

.field public static final STATE_SETTLING:I = 0x2

.field static final TAG:Ljava/lang/String; = "ViewDragHelper"

.field private static final sInterpolator:Landroid/view/animation/Interpolator;


# instance fields
.field private mActivePointerId:I

.field private final mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

.field private mCapturedView:Landroid/view/View;

.field private mDragState:I

.field private mEdgeDragsInProgress:[I

.field private mEdgeDragsLocked:[I

.field private mEdgeSize:I

.field private mIgnoredViews:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field

.field private mInitialEdgesTouched:[I

.field private mInitialMotionX:[F

.field private mInitialMotionY:[F

.field private mIsUnableToDrag:Z

.field private mLastMotionX:[F

.field private mLastMotionY:[F

.field private mMaxVelocity:F

.field private mMinVelocity:F

.field private final mParentView:Landroid/view/ViewGroup;

.field private mPointersDown:I

.field private mReleaseInProgress:Z

.field private mScroller:Landroid/support/v4/widget/ScrollerCompat;

.field private final mSetIdleRunnable:Ljava/lang/Runnable;

.field private mTouchSlop:I

.field private mTrackingEdges:I

.field private mVelocityTracker:Landroid/view/VelocityTracker;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 369
    new-instance v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper$1;

    invoke-direct {v0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$1;-><init>()V

    sput-object v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->sInterpolator:Landroid/view/animation/Interpolator;

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;)V
    .registers 8
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "forParent"    # Landroid/view/ViewGroup;
    .param p3, "cb"    # Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    .prologue
    .line 417
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 121
    const/4 v2, -0x1

    iput v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 159
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIgnoredViews:Ljava/util/List;

    .line 376
    new-instance v2, Lcom/brixd/android/swipeback/lib/ViewDragHelper$2;

    invoke-direct {v2, p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$2;-><init>(Lcom/brixd/android/swipeback/lib/ViewDragHelper;)V

    iput-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mSetIdleRunnable:Ljava/lang/Runnable;

    .line 1032
    const/4 v2, 0x0

    iput-boolean v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIsUnableToDrag:Z

    .line 418
    if-nez p2, :cond_21

    .line 419
    new-instance v2, Ljava/lang/IllegalArgumentException;

    const-string v3, "Parent view may not be null"

    invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 421
    :cond_21
    if-nez p3, :cond_2b

    .line 422
    new-instance v2, Ljava/lang/IllegalArgumentException;

    const-string v3, "Callback may not be null"

    invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 425
    :cond_2b
    iput-object p2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    .line 426
    iput-object p3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    .line 428
    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v1

    .line 429
    .local v1, "vc":Landroid/view/ViewConfiguration;
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v2

    iget v0, v2, Landroid/util/DisplayMetrics;->density:F

    .line 430
    .local v0, "density":F
    const/high16 v2, 0x41a00000

    mul-float/2addr v2, v0

    const/high16 v3, 0x3f000000

    add-float/2addr v2, v3

    float-to-int v2, v2

    iput v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeSize:I

    .line 432
    invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v2

    iput v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    .line 433
    invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v2

    int-to-float v2, v2

    iput v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMaxVelocity:F

    .line 434
    invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    move-result v2

    int-to-float v2, v2

    iput v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMinVelocity:F

    .line 435
    sget-object v2, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->sInterpolator:Landroid/view/animation/Interpolator;

    invoke-static {p1, v2}, Landroid/support/v4/widget/ScrollerCompat;->create(Landroid/content/Context;Landroid/view/animation/Interpolator;)Landroid/support/v4/widget/ScrollerCompat;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    .line 436
    return-void
.end method

.method private checkNewEdgeDrag(FFII)Z
    .registers 10
    .param p1, "delta"    # F
    .param p2, "odelta"    # F
    .param p3, "pointerId"    # I
    .param p4, "edge"    # I

    .prologue
    const/4 v2, 0x0

    .line 1383
    invoke-static {p1}, Ljava/lang/Math;->abs(F)F

    move-result v0

    .line 1384
    .local v0, "absDelta":F
    invoke-static {p2}, Ljava/lang/Math;->abs(F)F

    move-result v1

    .line 1386
    .local v1, "absODelta":F
    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    aget v3, v3, p3

    and-int/2addr v3, p4

    if-ne v3, p4, :cond_31

    iget v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    and-int/2addr v3, p4

    if-eqz v3, :cond_31

    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsLocked:[I

    aget v3, v3, p3

    and-int/2addr v3, p4

    if-eq v3, p4, :cond_31

    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsInProgress:[I

    aget v3, v3, p3

    and-int/2addr v3, p4

    if-eq v3, p4, :cond_31

    iget v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    int-to-float v3, v3

    cmpg-float v3, v0, v3

    if-gtz v3, :cond_32

    iget v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    int-to-float v3, v3

    cmpg-float v3, v1, v3

    if-gtz v3, :cond_32

    .line 1396
    :cond_31
    :goto_31
    return v2

    .line 1392
    :cond_32
    const/high16 v3, 0x3f000000

    mul-float/2addr v3, v1

    cmpg-float v3, v0, v3

    if-gez v3, :cond_49

    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v3, p4}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onEdgeLock(I)Z

    move-result v3

    if-eqz v3, :cond_49

    .line 1393
    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsLocked:[I

    aget v4, v3, p3

    or-int/2addr v4, p4

    aput v4, v3, p3

    goto :goto_31

    .line 1396
    :cond_49
    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsInProgress:[I

    aget v3, v3, p3

    and-int/2addr v3, p4

    if-nez v3, :cond_31

    iget v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    int-to-float v3, v3

    cmpl-float v3, v0, v3

    if-lez v3, :cond_31

    const/4 v2, 0x1

    goto :goto_31
.end method

.method private checkTouchSlop(Landroid/view/View;FF)Z
    .registers 14
    .param p1, "child"    # Landroid/view/View;
    .param p2, "dx"    # F
    .param p3, "dy"    # F

    .prologue
    const-wide/high16 v8, 0x4008000000000000L

    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 1410
    if-nez p1, :cond_7

    .line 1428
    :cond_6
    :goto_6
    return v3

    .line 1414
    :cond_7
    const/4 v4, 0x0

    cmpg-float v4, p2, v4

    if-lez v4, :cond_6

    .line 1418
    iget-object v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v4, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->getViewHorizontalDragRange(Landroid/view/View;)I

    move-result v4

    if-lez v4, :cond_33

    move v0, v2

    .line 1419
    .local v0, "checkHorizontal":Z
    :goto_15
    iget-object v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v4, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->getViewVerticalDragRange(Landroid/view/View;)I

    move-result v4

    if-lez v4, :cond_35

    move v1, v2

    .line 1421
    .local v1, "checkVertical":Z
    :goto_1e
    if-eqz v0, :cond_39

    if-eqz v1, :cond_39

    .line 1422
    mul-float v4, p2, p2

    mul-float v5, p3, p3

    add-float/2addr v4, v5

    iget v5, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    iget v6, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    mul-int/2addr v5, v6

    int-to-float v5, v5

    cmpl-float v4, v4, v5

    if-lez v4, :cond_37

    :goto_31
    move v3, v2

    goto :goto_6

    .end local v0    # "checkHorizontal":Z
    .end local v1    # "checkVertical":Z
    :cond_33
    move v0, v3

    .line 1418
    goto :goto_15

    .restart local v0    # "checkHorizontal":Z
    :cond_35
    move v1, v3

    .line 1419
    goto :goto_1e

    .restart local v1    # "checkVertical":Z
    :cond_37
    move v2, v3

    .line 1422
    goto :goto_31

    .line 1423
    :cond_39
    if-eqz v0, :cond_5d

    .line 1424
    invoke-static {p2}, Ljava/lang/Math;->abs(F)F

    move-result v4

    iget v5, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    int-to-float v5, v5

    cmpl-float v4, v4, v5

    if-lez v4, :cond_5b

    invoke-static {p3}, Ljava/lang/Math;->abs(F)F

    move-result v4

    invoke-static {p2}, Ljava/lang/Math;->abs(F)F

    move-result v5

    div-float/2addr v4, v5

    float-to-double v4, v4

    invoke-static {v8, v9}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v6

    div-double/2addr v6, v8

    cmpg-double v4, v4, v6

    if-gez v4, :cond_5b

    :goto_59
    move v3, v2

    goto :goto_6

    :cond_5b
    move v2, v3

    goto :goto_59

    .line 1425
    :cond_5d
    if-eqz v1, :cond_6

    .line 1426
    invoke-static {p3}, Ljava/lang/Math;->abs(F)F

    move-result v4

    iget v5, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    int-to-float v5, v5

    cmpl-float v4, v4, v5

    if-lez v4, :cond_6c

    :goto_6a
    move v3, v2

    goto :goto_6

    :cond_6c
    move v2, v3

    goto :goto_6a
.end method

.method private clampMag(FFF)F
    .registers 7
    .param p1, "value"    # F
    .param p2, "absMin"    # F
    .param p3, "absMax"    # F

    .prologue
    const/4 v1, 0x0

    .line 757
    invoke-static {p1}, Ljava/lang/Math;->abs(F)F

    move-result v0

    .line 758
    .local v0, "absValue":F
    cmpg-float v2, v0, p2

    if-gez v2, :cond_b

    move p3, v1

    .line 762
    .end local p3    # "absMax":F
    :cond_a
    :goto_a
    return p3

    .line 760
    .restart local p3    # "absMax":F
    :cond_b
    cmpl-float v2, v0, p3

    if-lez v2, :cond_15

    .line 761
    cmpl-float v1, p1, v1

    if-gtz v1, :cond_a

    neg-float p3, p3

    goto :goto_a

    :cond_15
    move p3, p1

    .line 762
    goto :goto_a
.end method

.method private clampMag(III)I
    .registers 5
    .param p1, "value"    # I
    .param p2, "absMin"    # I
    .param p3, "absMax"    # I

    .prologue
    .line 738
    invoke-static {p1}, Ljava/lang/Math;->abs(I)I

    move-result v0

    .line 739
    .local v0, "absValue":I
    if-ge v0, p2, :cond_8

    .line 740
    const/4 p3, 0x0

    .line 743
    .end local p3    # "absMax":I
    :cond_7
    :goto_7
    return p3

    .line 741
    .restart local p3    # "absMax":I
    :cond_8
    if-le v0, p3, :cond_e

    .line 742
    if-gtz p1, :cond_7

    neg-int p3, p3

    goto :goto_7

    :cond_e
    move p3, p1

    .line 743
    goto :goto_7
.end method

.method private clearMotionHistory()V
    .registers 4

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 864
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    if-nez v0, :cond_7

    .line 875
    :goto_6
    return-void

    .line 867
    :cond_7
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    invoke-static {v0, v1}, Ljava/util/Arrays;->fill([FF)V

    .line 868
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    invoke-static {v0, v1}, Ljava/util/Arrays;->fill([FF)V

    .line 869
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    invoke-static {v0, v1}, Ljava/util/Arrays;->fill([FF)V

    .line 870
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    invoke-static {v0, v1}, Ljava/util/Arrays;->fill([FF)V

    .line 871
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    invoke-static {v0, v2}, Ljava/util/Arrays;->fill([II)V

    .line 872
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsInProgress:[I

    invoke-static {v0, v2}, Ljava/util/Arrays;->fill([II)V

    .line 873
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsLocked:[I

    invoke-static {v0, v2}, Ljava/util/Arrays;->fill([II)V

    .line 874
    iput v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mPointersDown:I

    goto :goto_6
.end method

.method private clearMotionHistory(I)V
    .registers 5
    .param p1, "pointerId"    # I

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 878
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    if-nez v0, :cond_7

    .line 889
    :goto_6
    return-void

    .line 881
    :cond_7
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    aput v1, v0, p1

    .line 882
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    aput v1, v0, p1

    .line 883
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    aput v1, v0, p1

    .line 884
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    aput v1, v0, p1

    .line 885
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    aput v2, v0, p1

    .line 886
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsInProgress:[I

    aput v2, v0, p1

    .line 887
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsLocked:[I

    aput v2, v0, p1

    .line 888
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mPointersDown:I

    const/4 v1, 0x1

    shl-int/2addr v1, p1

    xor-int/lit8 v1, v1, -0x1

    and-int/2addr v0, v1

    iput v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mPointersDown:I

    goto :goto_6
.end method

.method private computeAxisDuration(III)I
    .registers 14
    .param p1, "delta"    # I
    .param p2, "velocity"    # I
    .param p3, "motionRange"    # I

    .prologue
    const/high16 v9, 0x3f800000

    .line 706
    if-nez p1, :cond_6

    .line 707
    const/4 v6, 0x0

    .line 724
    :goto_5
    return v6

    .line 710
    :cond_6
    iget-object v6, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    invoke-virtual {v6}, Landroid/view/ViewGroup;->getWidth()I

    move-result v5

    .line 711
    .local v5, "width":I
    div-int/lit8 v3, v5, 0x2

    .line 712
    .local v3, "halfWidth":I
    invoke-static {p1}, Ljava/lang/Math;->abs(I)I

    move-result v6

    int-to-float v6, v6

    int-to-float v7, v5

    div-float/2addr v6, v7

    invoke-static {v9, v6}, Ljava/lang/Math;->min(FF)F

    move-result v1

    .line 713
    .local v1, "distanceRatio":F
    int-to-float v6, v3

    int-to-float v7, v3

    .line 714
    invoke-direct {p0, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->distanceInfluenceForSnapDuration(F)F

    move-result v8

    mul-float/2addr v7, v8

    add-float v0, v6, v7

    .line 717
    .local v0, "distance":F
    invoke-static {p2}, Ljava/lang/Math;->abs(I)I

    move-result p2

    .line 718
    if-lez p2, :cond_3f

    .line 719
    const/high16 v6, 0x447a0000

    int-to-float v7, p2

    div-float v7, v0, v7

    invoke-static {v7}, Ljava/lang/Math;->abs(F)F

    move-result v7

    mul-float/2addr v6, v7

    invoke-static {v6}, Ljava/lang/Math;->round(F)I

    move-result v6

    mul-int/lit8 v2, v6, 0x4

    .line 724
    .local v2, "duration":I
    :goto_38
    const/16 v6, 0x258

    invoke-static {v2, v6}, Ljava/lang/Math;->min(II)I

    move-result v6

    goto :goto_5

    .line 721
    .end local v2    # "duration":I
    :cond_3f
    invoke-static {p1}, Ljava/lang/Math;->abs(I)I

    move-result v6

    int-to-float v6, v6

    int-to-float v7, p3

    div-float v4, v6, v7

    .line 722
    .local v4, "range":F
    add-float v6, v4, v9

    const/high16 v7, 0x43800000

    mul-float/2addr v6, v7

    float-to-int v2, v6

    .restart local v2    # "duration":I
    goto :goto_38
.end method

.method private computeSettleDuration(Landroid/view/View;IIII)I
    .registers 20
    .param p1, "child"    # Landroid/view/View;
    .param p2, "dx"    # I
    .param p3, "dy"    # I
    .param p4, "xvel"    # I
    .param p5, "yvel"    # I

    .prologue
    .line 685
    iget v12, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMinVelocity:F

    float-to-int v12, v12

    iget v13, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMaxVelocity:F

    float-to-int v13, v13

    move/from16 v0, p4

    invoke-direct {p0, v0, v12, v13}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->clampMag(III)I

    move-result p4

    .line 686
    iget v12, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMinVelocity:F

    float-to-int v12, v12

    iget v13, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMaxVelocity:F

    float-to-int v13, v13

    move/from16 v0, p5

    invoke-direct {p0, v0, v12, v13}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->clampMag(III)I

    move-result p5

    .line 687
    invoke-static/range {p2 .. p2}, Ljava/lang/Math;->abs(I)I

    move-result v2

    .line 688
    .local v2, "absDx":I
    invoke-static/range {p3 .. p3}, Ljava/lang/Math;->abs(I)I

    move-result v3

    .line 689
    .local v3, "absDy":I
    invoke-static/range {p4 .. p4}, Ljava/lang/Math;->abs(I)I

    move-result v4

    .line 690
    .local v4, "absXVel":I
    invoke-static/range {p5 .. p5}, Ljava/lang/Math;->abs(I)I

    move-result v5

    .line 691
    .local v5, "absYVel":I
    add-int v7, v4, v5

    .line 692
    .local v7, "addedVel":I
    add-int v6, v2, v3

    .line 694
    .local v6, "addedDistance":I
    if-eqz p4, :cond_5b

    int-to-float v12, v4

    int-to-float v13, v7

    div-float v9, v12, v13

    .line 696
    .local v9, "xweight":F
    :goto_32
    if-eqz p5, :cond_60

    int-to-float v12, v5

    int-to-float v13, v7

    div-float v11, v12, v13

    .line 699
    .local v11, "yweight":F
    :goto_38
    iget-object v12, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v12, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->getViewHorizontalDragRange(Landroid/view/View;)I

    move-result v12

    move/from16 v0, p2

    move/from16 v1, p4

    invoke-direct {p0, v0, v1, v12}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->computeAxisDuration(III)I

    move-result v8

    .line 700
    .local v8, "xduration":I
    iget-object v12, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v12, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->getViewVerticalDragRange(Landroid/view/View;)I

    move-result v12

    move/from16 v0, p3

    move/from16 v1, p5

    invoke-direct {p0, v0, v1, v12}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->computeAxisDuration(III)I

    move-result v10

    .line 702
    .local v10, "yduration":I
    int-to-float v12, v8

    mul-float/2addr v12, v9

    int-to-float v13, v10

    mul-float/2addr v13, v11

    add-float/2addr v12, v13

    float-to-int v12, v12

    return v12

    .line 694
    .end local v8    # "xduration":I
    .end local v9    # "xweight":F
    .end local v10    # "yduration":I
    .end local v11    # "yweight":F
    :cond_5b
    int-to-float v12, v2

    int-to-float v13, v6

    div-float v9, v12, v13

    goto :goto_32

    .line 696
    .restart local v9    # "xweight":F
    :cond_60
    int-to-float v12, v3

    int-to-float v13, v6

    div-float v11, v12, v13

    goto :goto_38
.end method

.method public static create(Landroid/view/ViewGroup;FLcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;)Lcom/brixd/android/swipeback/lib/ViewDragHelper;
    .registers 6
    .param p0, "forParent"    # Landroid/view/ViewGroup;
    .param p1, "sensitivity"    # F
    .param p2, "cb"    # Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    .prologue
    .line 404
    invoke-static {p0, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->create(Landroid/view/ViewGroup;Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;)Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    move-result-object v0

    .line 405
    .local v0, "helper":Lcom/brixd/android/swipeback/lib/ViewDragHelper;
    iget v1, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    int-to-float v1, v1

    const/high16 v2, 0x3f800000

    div-float/2addr v2, p1

    mul-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    .line 406
    return-object v0
.end method

.method public static create(Landroid/view/ViewGroup;Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;)Lcom/brixd/android/swipeback/lib/ViewDragHelper;
    .registers 4
    .param p0, "forParent"    # Landroid/view/ViewGroup;
    .param p1, "cb"    # Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    .prologue
    .line 390
    new-instance v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p0, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;)V

    return-object v0
.end method

.method private dispatchViewReleased(FF)V
    .registers 7
    .param p1, "xvel"    # F
    .param p2, "yvel"    # F

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 852
    iput-boolean v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mReleaseInProgress:Z

    .line 853
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0, v1, p1, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onViewReleased(Landroid/view/View;FF)V

    .line 854
    iput-boolean v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mReleaseInProgress:Z

    .line 856
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    if-ne v0, v3, :cond_14

    .line 859
    invoke-virtual {p0, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setDragState(I)V

    .line 861
    :cond_14
    return-void
.end method

.method private distanceInfluenceForSnapDuration(F)F
    .registers 6
    .param p1, "f"    # F

    .prologue
    .line 766
    const/high16 v0, 0x3f000000

    sub-float/2addr p1, v0

    .line 767
    float-to-double v0, p1

    const-wide v2, 0x3fde28c7460698c7L

    mul-double/2addr v0, v2

    double-to-float p1, v0

    .line 768
    float-to-double v0, p1

    invoke-static {v0, v1}, Ljava/lang/Math;->sin(D)D

    move-result-wide v0

    double-to-float v0, v0

    return v0
.end method

.method private dragTo(IIII)V
    .registers 13
    .param p1, "left"    # I
    .param p2, "top"    # I
    .param p3, "dx"    # I
    .param p4, "dy"    # I

    .prologue
    .line 1545
    move v2, p1

    .line 1546
    .local v2, "clampedX":I
    move v3, p2

    .line 1547
    .local v3, "clampedY":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLeft()I

    move-result v6

    .line 1548
    .local v6, "oldLeft":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v7

    .line 1549
    .local v7, "oldTop":I
    if-eqz p3, :cond_1f

    .line 1550
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0, v1, p1, p3}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->clampViewPositionHorizontal(Landroid/view/View;II)I

    move-result v2

    .line 1551
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    sub-int v1, v2, v6

    invoke-virtual {v0, v1}, Landroid/view/View;->offsetLeftAndRight(I)V

    .line 1553
    :cond_1f
    if-eqz p4, :cond_30

    .line 1554
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0, v1, p2, p4}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->clampViewPositionVertical(Landroid/view/View;II)I

    move-result v3

    .line 1555
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    sub-int v1, v3, v7

    invoke-virtual {v0, v1}, Landroid/view/View;->offsetTopAndBottom(I)V

    .line 1558
    :cond_30
    if-nez p3, :cond_34

    if-eqz p4, :cond_3f

    .line 1559
    :cond_34
    sub-int v4, v2, v6

    .line 1560
    .local v4, "clampedDx":I
    sub-int v5, v3, v7

    .line 1561
    .local v5, "clampedDy":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    .line 1562
    invoke-virtual/range {v0 .. v5}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onViewPositionChanged(Landroid/view/View;IIII)V

    .line 1564
    .end local v4    # "clampedDx":I
    .end local v5    # "clampedDy":I
    :cond_3f
    return-void
.end method

.method private ensureMotionHistorySizeForId(I)V
    .registers 12
    .param p1, "pointerId"    # I

    .prologue
    const/4 v9, 0x0

    .line 892
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    if-eqz v7, :cond_a

    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    array-length v7, v7

    if-gt v7, p1, :cond_70

    .line 893
    :cond_a
    add-int/lit8 v7, p1, 0x1

    new-array v3, v7, [F

    .line 894
    .local v3, "imx":[F
    add-int/lit8 v7, p1, 0x1

    new-array v4, v7, [F

    .line 895
    .local v4, "imy":[F
    add-int/lit8 v7, p1, 0x1

    new-array v5, v7, [F

    .line 896
    .local v5, "lmx":[F
    add-int/lit8 v7, p1, 0x1

    new-array v6, v7, [F

    .line 897
    .local v6, "lmy":[F
    add-int/lit8 v7, p1, 0x1

    new-array v2, v7, [I

    .line 898
    .local v2, "iit":[I
    add-int/lit8 v7, p1, 0x1

    new-array v0, v7, [I

    .line 899
    .local v0, "edip":[I
    add-int/lit8 v7, p1, 0x1

    new-array v1, v7, [I

    .line 901
    .local v1, "edl":[I
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    if-eqz v7, :cond_62

    .line 902
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    iget-object v8, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    array-length v8, v8

    invoke-static {v7, v9, v3, v9, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 903
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    iget-object v8, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    array-length v8, v8

    invoke-static {v7, v9, v4, v9, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 904
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    iget-object v8, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    array-length v8, v8

    invoke-static {v7, v9, v5, v9, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 905
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    iget-object v8, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    array-length v8, v8

    invoke-static {v7, v9, v6, v9, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 906
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    iget-object v8, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    array-length v8, v8

    invoke-static {v7, v9, v2, v9, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 907
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsInProgress:[I

    iget-object v8, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsInProgress:[I

    array-length v8, v8

    invoke-static {v7, v9, v0, v9, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 908
    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsLocked:[I

    iget-object v8, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsLocked:[I

    array-length v8, v8

    invoke-static {v7, v9, v1, v9, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 911
    :cond_62
    iput-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    .line 912
    iput-object v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    .line 913
    iput-object v5, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    .line 914
    iput-object v6, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    .line 915
    iput-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    .line 916
    iput-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsInProgress:[I

    .line 917
    iput-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsLocked:[I

    .line 919
    .end local v0    # "edip":[I
    .end local v1    # "edl":[I
    .end local v2    # "iit":[I
    .end local v3    # "imx":[F
    .end local v4    # "imy":[F
    .end local v5    # "lmx":[F
    .end local v6    # "lmy":[F
    :cond_70
    return-void
.end method

.method private forceSettleCapturedViewAt(IIII)Z
    .registers 16
    .param p1, "finalLeft"    # I
    .param p2, "finalTop"    # I
    .param p3, "xvel"    # I
    .param p4, "yvel"    # I

    .prologue
    const/4 v0, 0x0

    .line 665
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v10

    .line 666
    .local v10, "startLeft":I
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v6

    .line 667
    .local v6, "startTop":I
    sub-int v2, p1, v10

    .line 668
    .local v2, "dx":I
    sub-int v3, p2, v6

    .line 670
    .local v3, "dy":I
    if-nez v2, :cond_1e

    if-nez v3, :cond_1e

    .line 672
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v1}, Landroid/support/v4/widget/ScrollerCompat;->abortAnimation()V

    .line 673
    invoke-virtual {p0, v0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setDragState(I)V

    .line 681
    :goto_1d
    return v0

    .line 677
    :cond_1e
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    move-object v0, p0

    move v4, p3

    move v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->computeSettleDuration(Landroid/view/View;IIII)I

    move-result v9

    .line 678
    .local v9, "duration":I
    iget-object v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    move v5, v10

    move v7, v2

    move v8, v3

    invoke-virtual/range {v4 .. v9}, Landroid/support/v4/widget/ScrollerCompat;->startScroll(IIIII)V

    .line 680
    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setDragState(I)V

    .line 681
    const/4 v0, 0x1

    goto :goto_1d
.end method

.method private getEdgesTouched(II)I
    .registers 6
    .param p1, "x"    # I
    .param p2, "y"    # I

    .prologue
    .line 1621
    const/4 v0, 0x0

    .line 1623
    .local v0, "result":I
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getLeft()I

    move-result v1

    iget v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeSize:I

    add-int/2addr v1, v2

    if-ge p1, v1, :cond_e

    .line 1624
    or-int/lit8 v0, v0, 0x1

    .line 1625
    :cond_e
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getTop()I

    move-result v1

    iget v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeSize:I

    add-int/2addr v1, v2

    if-ge p2, v1, :cond_1b

    .line 1626
    or-int/lit8 v0, v0, 0x4

    .line 1627
    :cond_1b
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getRight()I

    move-result v1

    iget v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeSize:I

    sub-int/2addr v1, v2

    if-le p1, v1, :cond_28

    .line 1628
    or-int/lit8 v0, v0, 0x2

    .line 1629
    :cond_28
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getBottom()I

    move-result v1

    iget v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeSize:I

    sub-int/2addr v1, v2

    if-le p2, v1, :cond_35

    .line 1630
    or-int/lit8 v0, v0, 0x8

    .line 1633
    :cond_35
    or-int/lit8 v0, v0, 0x1

    .line 1634
    return v0
.end method

.method private isInIgnoredView(Landroid/view/MotionEvent;)Z
    .registers 7
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 1339
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 1340
    .local v0, "gRect":Landroid/graphics/Rect;
    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIgnoredViews:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_b
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_2c

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    .line 1341
    .local v1, "v":Landroid/view/View;
    invoke-virtual {v1, v0}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z

    .line 1342
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    float-to-int v4, v4

    invoke-virtual {v0, v3, v4}, Landroid/graphics/Rect;->contains(II)Z

    move-result v3

    if-eqz v3, :cond_b

    const/4 v2, 0x1

    .line 1344
    .end local v1    # "v":Landroid/view/View;
    :goto_2b
    return v2

    :cond_2c
    const/4 v2, 0x0

    goto :goto_2b
.end method

.method private releaseViewForPointerUp()V
    .registers 6

    .prologue
    .line 1534
    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    const/16 v3, 0x3e8

    iget v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMaxVelocity:F

    invoke-virtual {v2, v3, v4}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    .line 1535
    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    iget v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 1536
    invoke-static {v2, v3}, Landroid/support/v4/view/VelocityTrackerCompat;->getXVelocity(Landroid/view/VelocityTracker;I)F

    move-result v2

    iget v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMinVelocity:F

    iget v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMaxVelocity:F

    .line 1535
    invoke-direct {p0, v2, v3, v4}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->clampMag(FFF)F

    move-result v0

    .line 1538
    .local v0, "xvel":F
    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    iget v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 1539
    invoke-static {v2, v3}, Landroid/support/v4/view/VelocityTrackerCompat;->getYVelocity(Landroid/view/VelocityTracker;I)F

    move-result v2

    iget v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMinVelocity:F

    iget v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMaxVelocity:F

    .line 1538
    invoke-direct {p0, v2, v3, v4}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->clampMag(FFF)F

    move-result v1

    .line 1541
    .local v1, "yvel":F
    invoke-direct {p0, v0, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->dispatchViewReleased(FF)V

    .line 1542
    return-void
.end method

.method private reportNewEdgeDrags(FFI)V
    .registers 7
    .param p1, "dx"    # F
    .param p2, "dy"    # F
    .param p3, "pointerId"    # I

    .prologue
    .line 1362
    const/4 v0, 0x0

    .line 1363
    .local v0, "dragsStarted":I
    const/4 v1, 0x1

    invoke-direct {p0, p1, p2, p3, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->checkNewEdgeDrag(FFII)Z

    move-result v1

    if-eqz v1, :cond_a

    .line 1364
    or-int/lit8 v0, v0, 0x1

    .line 1366
    :cond_a
    const/4 v1, 0x4

    invoke-direct {p0, p2, p1, p3, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->checkNewEdgeDrag(FFII)Z

    move-result v1

    if-eqz v1, :cond_13

    .line 1367
    or-int/lit8 v0, v0, 0x4

    .line 1369
    :cond_13
    const/4 v1, 0x2

    invoke-direct {p0, p1, p2, p3, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->checkNewEdgeDrag(FFII)Z

    move-result v1

    if-eqz v1, :cond_1c

    .line 1370
    or-int/lit8 v0, v0, 0x2

    .line 1372
    :cond_1c
    const/16 v1, 0x8

    invoke-direct {p0, p2, p1, p3, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->checkNewEdgeDrag(FFII)Z

    move-result v1

    if-eqz v1, :cond_26

    .line 1373
    or-int/lit8 v0, v0, 0x8

    .line 1376
    :cond_26
    if-eqz v0, :cond_34

    .line 1377
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeDragsInProgress:[I

    aget v2, v1, p3

    or-int/2addr v2, v0

    aput v2, v1, p3

    .line 1378
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v1, v0, p3}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onEdgeDragStarted(II)V

    .line 1380
    :cond_34
    return-void
.end method

.method private saveInitialMotion(FFI)V
    .registers 7
    .param p1, "x"    # F
    .param p2, "y"    # F
    .param p3, "pointerId"    # I

    .prologue
    .line 922
    invoke-direct {p0, p3}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->ensureMotionHistorySizeForId(I)V

    .line 923
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    aput p1, v1, p3

    aput p1, v0, p3

    .line 924
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    aput p2, v1, p3

    aput p2, v0, p3

    .line 925
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    float-to-int v1, p1

    float-to-int v2, p2

    invoke-direct {p0, v1, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->getEdgesTouched(II)I

    move-result v1

    aput v1, v0, p3

    .line 926
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mPointersDown:I

    const/4 v1, 0x1

    shl-int/2addr v1, p3

    or-int/2addr v0, v1

    iput v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mPointersDown:I

    .line 927
    return-void
.end method

.method private saveLastMotion(Landroid/view/MotionEvent;)V
    .registers 8
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 930
    invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getPointerCount(Landroid/view/MotionEvent;)I

    move-result v1

    .line 931
    .local v1, "pointerCount":I
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_5
    if-ge v0, v1, :cond_1e

    .line 932
    invoke-static {p1, v0}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v2

    .line 933
    .local v2, "pointerId":I
    invoke-static {p1, v0}, Landroid/support/v4/view/MotionEventCompat;->getX(Landroid/view/MotionEvent;I)F

    move-result v3

    .line 934
    .local v3, "x":F
    invoke-static {p1, v0}, Landroid/support/v4/view/MotionEventCompat;->getY(Landroid/view/MotionEvent;I)F

    move-result v4

    .line 935
    .local v4, "y":F
    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    aput v3, v5, v2

    .line 936
    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    aput v4, v5, v2

    .line 931
    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    .line 938
    .end local v2    # "pointerId":I
    .end local v3    # "x":F
    .end local v4    # "y":F
    :cond_1e
    return-void
.end method


# virtual methods
.method public abort()V
    .registers 9

    .prologue
    .line 593
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->cancel()V

    .line 594
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_30

    .line 595
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->getCurrX()I

    move-result v6

    .line 596
    .local v6, "oldX":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->getCurrY()I

    move-result v7

    .line 597
    .local v7, "oldY":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->abortAnimation()V

    .line 598
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->getCurrX()I

    move-result v2

    .line 599
    .local v2, "newX":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->getCurrY()I

    move-result v3

    .line 600
    .local v3, "newY":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    sub-int v4, v2, v6

    sub-int v5, v3, v7

    invoke-virtual/range {v0 .. v5}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onViewPositionChanged(Landroid/view/View;IIII)V

    .line 602
    .end local v2    # "newX":I
    .end local v3    # "newY":I
    .end local v6    # "oldX":I
    .end local v7    # "oldY":I
    :cond_30
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setDragState(I)V

    .line 603
    return-void
.end method

.method public addIgnoredView(Landroid/view/View;)V
    .registers 3
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 1348
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIgnoredViews:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_d

    .line 1349
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIgnoredViews:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1351
    :cond_d
    return-void
.end method

.method protected canScroll(Landroid/view/View;ZIIII)Z
    .registers 20
    .param p1, "v"    # Landroid/view/View;
    .param p2, "checkV"    # Z
    .param p3, "dx"    # I
    .param p4, "dy"    # I
    .param p5, "x"    # I
    .param p6, "y"    # I

    .prologue
    .line 1005
    instance-of v1, p1, Landroid/view/ViewGroup;

    if-eqz v1, :cond_5c

    move-object v9, p1

    .line 1006
    check-cast v9, Landroid/view/ViewGroup;

    .line 1007
    .local v9, "group":Landroid/view/ViewGroup;
    invoke-virtual {p1}, Landroid/view/View;->getScrollX()I

    move-result v11

    .line 1008
    .local v11, "scrollX":I
    invoke-virtual {p1}, Landroid/view/View;->getScrollY()I

    move-result v12

    .line 1009
    .local v12, "scrollY":I
    invoke-virtual {v9}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v8

    .line 1012
    .local v8, "count":I
    add-int/lit8 v10, v8, -0x1

    .local v10, "i":I
    :goto_15
    if-ltz v10, :cond_5c

    .line 1015
    invoke-virtual {v9, v10}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    .line 1016
    .local v2, "child":Landroid/view/View;
    add-int v1, p5, v11

    invoke-virtual {v2}, Landroid/view/View;->getLeft()I

    move-result v3

    if-lt v1, v3, :cond_59

    add-int v1, p5, v11

    .line 1017
    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result v3

    if-ge v1, v3, :cond_59

    add-int v1, p6, v12

    .line 1018
    invoke-virtual {v2}, Landroid/view/View;->getTop()I

    move-result v3

    if-lt v1, v3, :cond_59

    add-int v1, p6, v12

    .line 1019
    invoke-virtual {v2}, Landroid/view/View;->getBottom()I

    move-result v3

    if-ge v1, v3, :cond_59

    const/4 v3, 0x1

    add-int v1, p5, v11

    .line 1020
    invoke-virtual {v2}, Landroid/view/View;->getLeft()I

    move-result v4

    sub-int v6, v1, v4

    add-int v1, p6, v12

    .line 1021
    invoke-virtual {v2}, Landroid/view/View;->getTop()I

    move-result v4

    sub-int v7, v1, v4

    move-object v1, p0

    move/from16 v4, p3

    move/from16 v5, p4

    .line 1020
    invoke-virtual/range {v1 .. v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->canScroll(Landroid/view/View;ZIIII)Z

    move-result v1

    if-eqz v1, :cond_59

    .line 1022
    const/4 v1, 0x1

    .line 1028
    .end local v2    # "child":Landroid/view/View;
    .end local v8    # "count":I
    .end local v9    # "group":Landroid/view/ViewGroup;
    .end local v10    # "i":I
    .end local v11    # "scrollX":I
    .end local v12    # "scrollY":I
    :goto_58
    return v1

    .line 1012
    .restart local v2    # "child":Landroid/view/View;
    .restart local v8    # "count":I
    .restart local v9    # "group":Landroid/view/ViewGroup;
    .restart local v10    # "i":I
    .restart local v11    # "scrollX":I
    .restart local v12    # "scrollY":I
    :cond_59
    add-int/lit8 v10, v10, -0x1

    goto :goto_15

    .line 1027
    .end local v2    # "child":Landroid/view/View;
    .end local v8    # "count":I
    .end local v9    # "group":Landroid/view/ViewGroup;
    .end local v10    # "i":I
    .end local v11    # "scrollX":I
    .end local v12    # "scrollY":I
    :cond_5c
    if-eqz p2, :cond_72

    move/from16 v0, p3

    neg-int v1, v0

    .line 1028
    invoke-static {p1, v1}, Landroid/support/v4/view/ViewCompat;->canScrollHorizontally(Landroid/view/View;I)Z

    move-result v1

    if-nez v1, :cond_70

    move/from16 v0, p4

    neg-int v1, v0

    invoke-static {p1, v1}, Landroid/support/v4/view/ViewCompat;->canScrollVertically(Landroid/view/View;I)Z

    move-result v1

    if-eqz v1, :cond_72

    :cond_70
    const/4 v1, 0x1

    goto :goto_58

    :cond_72
    const/4 v1, 0x0

    goto :goto_58
.end method

.method public cancel()V
    .registers 2

    .prologue
    .line 578
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIsUnableToDrag:Z

    .line 579
    const/4 v0, -0x1

    iput v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 580
    invoke-direct {p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->clearMotionHistory()V

    .line 582
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_15

    .line 583
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    .line 584
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 586
    :cond_15
    return-void
.end method

.method public captureChildView(Landroid/view/View;I)V
    .registers 6
    .param p1, "childView"    # Landroid/view/View;
    .param p2, "activePointerId"    # I

    .prologue
    .line 537
    invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    if-eq v0, v1, :cond_29

    .line 538
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "captureChildView: parameter must be a descendant of the ViewDragHelper\'s tracked parent view ("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 542
    :cond_29
    iput-object p1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    .line 543
    iput p2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 544
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v0, p1, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onViewCaptured(Landroid/view/View;I)V

    .line 545
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setDragState(I)V

    .line 546
    return-void
.end method

.method public checkTouchSlop(I)Z
    .registers 5
    .param p1, "directions"    # I

    .prologue
    .line 1448
    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    array-length v0, v2

    .line 1449
    .local v0, "count":I
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_4
    if-ge v1, v0, :cond_11

    .line 1450
    invoke-virtual {p0, p1, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->checkTouchSlop(II)Z

    move-result v2

    if-eqz v2, :cond_e

    .line 1451
    const/4 v2, 0x1

    .line 1454
    :goto_d
    return v2

    .line 1449
    :cond_e
    add-int/lit8 v1, v1, 0x1

    goto :goto_4

    .line 1454
    :cond_11
    const/4 v2, 0x0

    goto :goto_d
.end method

.method public checkTouchSlop(II)Z
    .registers 12
    .param p1, "directions"    # I
    .param p2, "pointerId"    # I

    .prologue
    const/4 v4, 0x1

    const/4 v5, 0x0

    .line 1476
    invoke-virtual {p0, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->isPointerDown(I)Z

    move-result v6

    if-nez v6, :cond_a

    move v4, v5

    .line 1493
    :cond_9
    :goto_9
    return v4

    .line 1480
    :cond_a
    and-int/lit8 v6, p1, 0x1

    if-ne v6, v4, :cond_3e

    move v0, v4

    .line 1481
    .local v0, "checkHorizontal":Z
    :goto_f
    and-int/lit8 v6, p1, 0x2

    const/4 v7, 0x2

    if-ne v6, v7, :cond_40

    move v1, v4

    .line 1483
    .local v1, "checkVertical":Z
    :goto_15
    iget-object v6, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    aget v6, v6, p2

    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    aget v7, v7, p2

    sub-float v2, v6, v7

    .line 1484
    .local v2, "dx":F
    iget-object v6, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    aget v6, v6, p2

    iget-object v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    aget v7, v7, p2

    sub-float v3, v6, v7

    .line 1486
    .local v3, "dy":F
    if-eqz v0, :cond_42

    if-eqz v1, :cond_42

    .line 1487
    mul-float v6, v2, v2

    mul-float v7, v3, v3

    add-float/2addr v6, v7

    iget v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    iget v8, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    mul-int/2addr v7, v8

    int-to-float v7, v7

    cmpl-float v6, v6, v7

    if-gtz v6, :cond_9

    move v4, v5

    goto :goto_9

    .end local v0    # "checkHorizontal":Z
    .end local v1    # "checkVertical":Z
    .end local v2    # "dx":F
    .end local v3    # "dy":F
    :cond_3e
    move v0, v5

    .line 1480
    goto :goto_f

    .restart local v0    # "checkHorizontal":Z
    :cond_40
    move v1, v5

    .line 1481
    goto :goto_15

    .line 1488
    .restart local v1    # "checkVertical":Z
    .restart local v2    # "dx":F
    .restart local v3    # "dy":F
    :cond_42
    if-eqz v0, :cond_51

    .line 1489
    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v6

    iget v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    int-to-float v7, v7

    cmpl-float v6, v6, v7

    if-gtz v6, :cond_9

    move v4, v5

    goto :goto_9

    .line 1490
    :cond_51
    if-eqz v1, :cond_60

    .line 1491
    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v6

    iget v7, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    int-to-float v7, v7

    cmpl-float v6, v6, v7

    if-gtz v6, :cond_9

    move v4, v5

    goto :goto_9

    :cond_60
    move v4, v5

    .line 1493
    goto :goto_9
.end method

.method public clearIgnoredViews()V
    .registers 2

    .prologue
    .line 1358
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIgnoredViews:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 1359
    return-void
.end method

.method public continueSettling(Z)Z
    .registers 11
    .param p1, "deferCallbacks"    # Z

    .prologue
    const/4 v8, 0x2

    const/4 v7, 0x0

    .line 807
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    if-ne v0, v8, :cond_69

    .line 808
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->computeScrollOffset()Z

    move-result v6

    .line 809
    .local v6, "keepGoing":Z
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->getCurrX()I

    move-result v2

    .line 810
    .local v2, "x":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->getCurrY()I

    move-result v3

    .line 811
    .local v3, "y":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLeft()I

    move-result v0

    sub-int v4, v2, v0

    .line 812
    .local v4, "dx":I
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v0

    sub-int v5, v3, v0

    .line 814
    .local v5, "dy":I
    if-eqz v4, :cond_2f

    .line 815
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->offsetLeftAndRight(I)V

    .line 817
    :cond_2f
    if-eqz v5, :cond_36

    .line 818
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v0, v5}, Landroid/view/View;->offsetTopAndBottom(I)V

    .line 821
    :cond_36
    if-nez v4, :cond_3a

    if-eqz v5, :cond_41

    .line 822
    :cond_3a
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual/range {v0 .. v5}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onViewPositionChanged(Landroid/view/View;IIII)V

    .line 825
    :cond_41
    if-eqz v6, :cond_5e

    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->getFinalX()I

    move-result v0

    if-ne v2, v0, :cond_5e

    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->getFinalY()I

    move-result v0

    if-ne v3, v0, :cond_5e

    .line 829
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->abortAnimation()V

    .line 830
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    invoke-virtual {v0}, Landroid/support/v4/widget/ScrollerCompat;->isFinished()Z

    move-result v6

    .line 833
    :cond_5e
    if-nez v6, :cond_69

    .line 834
    if-eqz p1, :cond_6f

    .line 835
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mSetIdleRunnable:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z

    .line 842
    .end local v2    # "x":I
    .end local v3    # "y":I
    .end local v4    # "dx":I
    .end local v5    # "dy":I
    .end local v6    # "keepGoing":Z
    :cond_69
    :goto_69
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    if-ne v0, v8, :cond_73

    const/4 v0, 0x1

    :goto_6e
    return v0

    .line 837
    .restart local v2    # "x":I
    .restart local v3    # "y":I
    .restart local v4    # "dx":I
    .restart local v5    # "dy":I
    .restart local v6    # "keepGoing":Z
    :cond_6f
    invoke-virtual {p0, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setDragState(I)V

    goto :goto_69

    .end local v2    # "x":I
    .end local v3    # "y":I
    .end local v4    # "dx":I
    .end local v5    # "dy":I
    .end local v6    # "keepGoing":Z
    :cond_73
    move v0, v7

    .line 842
    goto :goto_6e
.end method

.method public findTopChildUnder(II)Landroid/view/View;
    .registers 8
    .param p1, "x"    # I
    .param p2, "y"    # I

    .prologue
    .line 1609
    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    invoke-virtual {v3}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v1

    .line 1610
    .local v1, "childCount":I
    add-int/lit8 v2, v1, -0x1

    .local v2, "i":I
    :goto_8
    if-ltz v2, :cond_32

    .line 1611
    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mParentView:Landroid/view/ViewGroup;

    iget-object v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v4, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->getOrderedChildIndex(I)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 1612
    .local v0, "child":Landroid/view/View;
    invoke-virtual {v0}, Landroid/view/View;->getLeft()I

    move-result v3

    if-lt p1, v3, :cond_2f

    invoke-virtual {v0}, Landroid/view/View;->getRight()I

    move-result v3

    if-ge p1, v3, :cond_2f

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v3

    if-lt p2, v3, :cond_2f

    .line 1613
    invoke-virtual {v0}, Landroid/view/View;->getBottom()I

    move-result v3

    if-ge p2, v3, :cond_2f

    .line 1617
    .end local v0    # "child":Landroid/view/View;
    :goto_2e
    return-object v0

    .line 1610
    .restart local v0    # "child":Landroid/view/View;
    :cond_2f
    add-int/lit8 v2, v2, -0x1

    goto :goto_8

    .line 1617
    .end local v0    # "child":Landroid/view/View;
    :cond_32
    const/4 v0, 0x0

    goto :goto_2e
.end method

.method public flingCapturedView(IIII)V
    .registers 14
    .param p1, "minLeft"    # I
    .param p2, "minTop"    # I
    .param p3, "maxLeft"    # I
    .param p4, "maxTop"    # I

    .prologue
    .line 782
    iget-boolean v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mReleaseInProgress:Z

    if-nez v0, :cond_c

    .line 783
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Cannot flingCapturedView outside of a call to Callback#onViewReleased"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 787
    :cond_c
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mScroller:Landroid/support/v4/widget/ScrollerCompat;

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v1

    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getTop()I

    move-result v2

    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    iget v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 788
    invoke-static {v3, v4}, Landroid/support/v4/view/VelocityTrackerCompat;->getXVelocity(Landroid/view/VelocityTracker;I)F

    move-result v3

    float-to-int v3, v3

    iget-object v4, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    iget v5, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 789
    invoke-static {v4, v5}, Landroid/support/v4/view/VelocityTrackerCompat;->getYVelocity(Landroid/view/VelocityTracker;I)F

    move-result v4

    float-to-int v4, v4

    move v5, p1

    move v6, p3

    move v7, p2

    move v8, p4

    .line 787
    invoke-virtual/range {v0 .. v8}, Landroid/support/v4/widget/ScrollerCompat;->fling(IIIIIIII)V

    .line 792
    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setDragState(I)V

    .line 793
    return-void
.end method

.method public getActivePointerId()I
    .registers 2

    .prologue
    .line 561
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    return v0
.end method

.method public getCapturedView()Landroid/view/View;
    .registers 2

    .prologue
    .line 553
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    return-object v0
.end method

.method public getEdgeSize()I
    .registers 2

    .prologue
    .line 512
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeSize:I

    return v0
.end method

.method public getMinVelocity()F
    .registers 2

    .prologue
    .line 471
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMinVelocity:F

    return v0
.end method

.method public getTouchSlop()I
    .registers 2

    .prologue
    .line 569
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    return v0
.end method

.method public getViewDragState()I
    .registers 2

    .prologue
    .line 481
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    return v0
.end method

.method public isCapturedViewUnder(II)Z
    .registers 4
    .param p1, "x"    # I
    .param p2, "y"    # I

    .prologue
    .line 1577
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    invoke-virtual {p0, v0, p1, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->isViewUnder(Landroid/view/View;II)Z

    move-result v0

    return v0
.end method

.method public isEdgeTouched(I)Z
    .registers 5
    .param p1, "edges"    # I

    .prologue
    .line 1508
    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    array-length v0, v2

    .line 1509
    .local v0, "count":I
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_4
    if-ge v1, v0, :cond_11

    .line 1510
    invoke-virtual {p0, p1, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->isEdgeTouched(II)Z

    move-result v2

    if-eqz v2, :cond_e

    .line 1511
    const/4 v2, 0x1

    .line 1514
    :goto_d
    return v2

    .line 1509
    :cond_e
    add-int/lit8 v1, v1, 0x1

    goto :goto_4

    .line 1514
    :cond_11
    const/4 v2, 0x0

    goto :goto_d
.end method

.method public isEdgeTouched(II)Z
    .registers 4
    .param p1, "edges"    # I
    .param p2, "pointerId"    # I

    .prologue
    .line 1530
    invoke-virtual {p0, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->isPointerDown(I)Z

    move-result v0

    if-eqz v0, :cond_f

    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    aget v0, v0, p2

    and-int/2addr v0, p1

    if-eqz v0, :cond_f

    const/4 v0, 0x1

    :goto_e
    return v0

    :cond_f
    const/4 v0, 0x0

    goto :goto_e
.end method

.method public isPointerDown(I)Z
    .registers 5
    .param p1, "pointerId"    # I

    .prologue
    const/4 v0, 0x1

    .line 956
    iget v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mPointersDown:I

    shl-int v2, v0, p1

    and-int/2addr v1, v2

    if-eqz v1, :cond_9

    :goto_8
    return v0

    :cond_9
    const/4 v0, 0x0

    goto :goto_8
.end method

.method public isViewUnder(Landroid/view/View;II)Z
    .registers 6
    .param p1, "view"    # Landroid/view/View;
    .param p2, "x"    # I
    .param p3, "y"    # I

    .prologue
    const/4 v0, 0x0

    .line 1591
    if-nez p1, :cond_4

    .line 1595
    :cond_3
    :goto_3
    return v0

    .line 1594
    :cond_4
    invoke-virtual {p1}, Landroid/view/View;->getLeft()I

    move-result v1

    if-lt p2, v1, :cond_3

    invoke-virtual {p1}, Landroid/view/View;->getRight()I

    move-result v1

    if-ge p2, v1, :cond_3

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v1

    if-lt p3, v1, :cond_3

    .line 1595
    invoke-virtual {p1}, Landroid/view/View;->getBottom()I

    move-result v1

    if-ge p3, v1, :cond_3

    const/4 v0, 0x1

    goto :goto_3
.end method

.method public processTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 23
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 1172
    invoke-static/range {p1 .. p1}, Landroid/support/v4/view/MotionEventCompat;->getActionMasked(Landroid/view/MotionEvent;)I

    move-result v3

    .line 1173
    .local v3, "action":I
    invoke-static/range {p1 .. p1}, Landroid/support/v4/view/MotionEventCompat;->getActionIndex(Landroid/view/MotionEvent;)I

    move-result v4

    .line 1175
    .local v4, "actionIndex":I
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIsUnableToDrag:Z

    move/from16 v19, v0

    if-eqz v19, :cond_22

    .line 1176
    const/16 v19, 0x3

    move/from16 v0, v19

    if-eq v3, v0, :cond_1c

    const/16 v19, 0x1

    move/from16 v0, v19

    if-ne v3, v0, :cond_1f

    .line 1177
    :cond_1c
    invoke-virtual/range {p0 .. p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->cancel()V

    .line 1179
    :cond_1f
    const/16 v19, 0x0

    .line 1335
    :goto_21
    return v19

    .line 1182
    :cond_22
    if-nez v3, :cond_27

    .line 1185
    invoke-virtual/range {p0 .. p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->cancel()V

    .line 1188
    :cond_27
    packed-switch v3, :pswitch_data_2da

    .line 1330
    :cond_2a
    :goto_2a
    :pswitch_2a
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    if-nez v19, :cond_3c

    .line 1331
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 1333
    :cond_3c
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    move-object/from16 v1, p1

    invoke-virtual {v0, v1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 1335
    const/16 v19, 0x1

    goto :goto_21

    .line 1190
    :pswitch_4c
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F

    move-result v17

    .line 1191
    .local v17, "x":F
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F

    move-result v18

    .line 1192
    .local v18, "y":F
    const/16 v19, 0x0

    move-object/from16 v0, p1

    move/from16 v1, v19

    invoke-static {v0, v1}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v15

    .line 1193
    .local v15, "pointerId":I
    move/from16 v0, v17

    float-to-int v0, v0

    move/from16 v19, v0

    move/from16 v0, v18

    float-to-int v0, v0

    move/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object v16

    .line 1195
    .local v16, "toCapture":Landroid/view/View;
    move-object/from16 v0, p0

    move/from16 v1, v17

    move/from16 v2, v18

    invoke-direct {v0, v1, v2, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->saveInitialMotion(FFI)V

    .line 1201
    move-object/from16 v0, p0

    move-object/from16 v1, v16

    invoke-virtual {v0, v1, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->tryCaptureViewForDrag(Landroid/view/View;I)Z

    .line 1203
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    move-object/from16 v19, v0

    aget v7, v19, v15

    .line 1204
    .local v7, "edgesTouched":I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    move/from16 v19, v0

    and-int v19, v19, v7

    if-eqz v19, :cond_2a

    .line 1205
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    move/from16 v20, v0

    and-int v20, v20, v7

    move-object/from16 v0, v19

    move/from16 v1, v20

    invoke-virtual {v0, v1, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onEdgeTouched(II)V

    goto :goto_2a

    .line 1211
    .end local v7    # "edgesTouched":I
    .end local v15    # "pointerId":I
    .end local v16    # "toCapture":Landroid/view/View;
    .end local v17    # "x":F
    .end local v18    # "y":F
    :pswitch_aa
    move-object/from16 v0, p1

    invoke-static {v0, v4}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v15

    .line 1212
    .restart local v15    # "pointerId":I
    move-object/from16 v0, p1

    invoke-static {v0, v4}, Landroid/support/v4/view/MotionEventCompat;->getX(Landroid/view/MotionEvent;I)F

    move-result v17

    .line 1213
    .restart local v17    # "x":F
    move-object/from16 v0, p1

    invoke-static {v0, v4}, Landroid/support/v4/view/MotionEventCompat;->getY(Landroid/view/MotionEvent;I)F

    move-result v18

    .line 1215
    .restart local v18    # "y":F
    move-object/from16 v0, p0

    move/from16 v1, v17

    move/from16 v2, v18

    invoke-direct {v0, v1, v2, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->saveInitialMotion(FFI)V

    .line 1218
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    move/from16 v19, v0

    if-nez v19, :cond_111

    .line 1222
    move/from16 v0, v17

    float-to-int v0, v0

    move/from16 v19, v0

    move/from16 v0, v18

    float-to-int v0, v0

    move/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object v16

    .line 1223
    .restart local v16    # "toCapture":Landroid/view/View;
    move-object/from16 v0, p0

    move-object/from16 v1, v16

    invoke-virtual {v0, v1, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->tryCaptureViewForDrag(Landroid/view/View;I)Z

    .line 1225
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    move-object/from16 v19, v0

    aget v7, v19, v15

    .line 1226
    .restart local v7    # "edgesTouched":I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    move/from16 v19, v0

    and-int v19, v19, v7

    if-eqz v19, :cond_2a

    .line 1227
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    move/from16 v20, v0

    and-int v20, v20, v7

    move-object/from16 v0, v19

    move/from16 v1, v20

    invoke-virtual {v0, v1, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onEdgeTouched(II)V

    goto/16 :goto_2a

    .line 1229
    .end local v7    # "edgesTouched":I
    .end local v16    # "toCapture":Landroid/view/View;
    :cond_111
    move/from16 v0, v17

    float-to-int v0, v0

    move/from16 v19, v0

    move/from16 v0, v18

    float-to-int v0, v0

    move/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->isCapturedViewUnder(II)Z

    move-result v19

    if-eqz v19, :cond_2a

    .line 1237
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->tryCaptureViewForDrag(Landroid/view/View;I)Z

    goto/16 :goto_2a

    .line 1243
    .end local v15    # "pointerId":I
    .end local v17    # "x":F
    .end local v18    # "y":F
    :pswitch_136
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    move/from16 v19, v0

    const/16 v20, 0x1

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_1aa

    .line 1244
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    move/from16 v19, v0

    move-object/from16 v0, p1

    move/from16 v1, v19

    invoke-static {v0, v1}, Landroid/support/v4/view/MotionEventCompat;->findPointerIndex(Landroid/view/MotionEvent;I)I

    move-result v12

    .line 1245
    .local v12, "index":I
    move-object/from16 v0, p1

    invoke-static {v0, v12}, Landroid/support/v4/view/MotionEventCompat;->getX(Landroid/view/MotionEvent;I)F

    move-result v17

    .line 1246
    .restart local v17    # "x":F
    move-object/from16 v0, p1

    invoke-static {v0, v12}, Landroid/support/v4/view/MotionEventCompat;->getY(Landroid/view/MotionEvent;I)F

    move-result v18

    .line 1247
    .restart local v18    # "y":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionX:[F

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    move/from16 v20, v0

    aget v19, v19, v20

    sub-float v19, v17, v19

    move/from16 v0, v19

    float-to-int v10, v0

    .line 1248
    .local v10, "idx":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mLastMotionY:[F

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    move/from16 v20, v0

    aget v19, v19, v20

    sub-float v19, v18, v19

    move/from16 v0, v19

    float-to-int v11, v0

    .line 1250
    .local v11, "idy":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/view/View;->getLeft()I

    move-result v19

    add-int v19, v19, v10

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    move-object/from16 v20, v0

    invoke-virtual/range {v20 .. v20}, Landroid/view/View;->getTop()I

    move-result v20

    add-int v20, v20, v11

    move-object/from16 v0, p0

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-direct {v0, v1, v2, v10, v11}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->dragTo(IIII)V

    .line 1252
    invoke-direct/range {p0 .. p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->saveLastMotion(Landroid/view/MotionEvent;)V

    goto/16 :goto_2a

    .line 1255
    .end local v10    # "idx":I
    .end local v11    # "idy":I
    .end local v12    # "index":I
    .end local v17    # "x":F
    .end local v18    # "y":F
    :cond_1aa
    invoke-static/range {p1 .. p1}, Landroid/support/v4/view/MotionEventCompat;->getPointerCount(Landroid/view/MotionEvent;)I

    move-result v14

    .line 1256
    .local v14, "pointerCount":I
    const/4 v8, 0x0

    .local v8, "i":I
    :goto_1af
    if-ge v8, v14, :cond_1ea

    .line 1257
    move-object/from16 v0, p1

    invoke-static {v0, v8}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v15

    .line 1258
    .restart local v15    # "pointerId":I
    move-object/from16 v0, p1

    invoke-static {v0, v8}, Landroid/support/v4/view/MotionEventCompat;->getX(Landroid/view/MotionEvent;I)F

    move-result v17

    .line 1259
    .restart local v17    # "x":F
    move-object/from16 v0, p1

    invoke-static {v0, v8}, Landroid/support/v4/view/MotionEventCompat;->getY(Landroid/view/MotionEvent;I)F

    move-result v18

    .line 1260
    .restart local v18    # "y":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    move-object/from16 v19, v0

    aget v19, v19, v15

    sub-float v5, v17, v19

    .line 1261
    .local v5, "dx":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    move-object/from16 v19, v0

    aget v19, v19, v15

    sub-float v6, v18, v19

    .line 1263
    .local v6, "dy":F
    move-object/from16 v0, p0

    invoke-direct {v0, v5, v6, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->reportNewEdgeDrags(FFI)V

    .line 1264
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    move/from16 v19, v0

    const/16 v20, 0x1

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_1ef

    .line 1275
    .end local v5    # "dx":F
    .end local v6    # "dy":F
    .end local v15    # "pointerId":I
    .end local v17    # "x":F
    .end local v18    # "y":F
    :cond_1ea
    invoke-direct/range {p0 .. p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->saveLastMotion(Landroid/view/MotionEvent;)V

    goto/16 :goto_2a

    .line 1269
    .restart local v5    # "dx":F
    .restart local v6    # "dy":F
    .restart local v15    # "pointerId":I
    .restart local v17    # "x":F
    .restart local v18    # "y":F
    :cond_1ef
    move/from16 v0, v17

    float-to-int v0, v0

    move/from16 v19, v0

    move/from16 v0, v18

    float-to-int v0, v0

    move/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object v16

    .line 1270
    .restart local v16    # "toCapture":Landroid/view/View;
    move-object/from16 v0, p0

    move-object/from16 v1, v16

    invoke-direct {v0, v1, v5, v6}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->checkTouchSlop(Landroid/view/View;FF)Z

    move-result v19

    if-eqz v19, :cond_217

    .line 1271
    move-object/from16 v0, p0

    move-object/from16 v1, v16

    invoke-virtual {v0, v1, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->tryCaptureViewForDrag(Landroid/view/View;I)Z

    move-result v19

    if-nez v19, :cond_1ea

    .line 1256
    :cond_217
    add-int/lit8 v8, v8, 0x1

    goto :goto_1af

    .line 1281
    .end local v5    # "dx":F
    .end local v6    # "dy":F
    .end local v8    # "i":I
    .end local v14    # "pointerCount":I
    .end local v15    # "pointerId":I
    .end local v16    # "toCapture":Landroid/view/View;
    .end local v17    # "x":F
    .end local v18    # "y":F
    :pswitch_21a
    move-object/from16 v0, p1

    invoke-static {v0, v4}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v15

    .line 1282
    .restart local v15    # "pointerId":I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    move/from16 v19, v0

    const/16 v20, 0x1

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_29c

    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    move/from16 v19, v0

    move/from16 v0, v19

    if-ne v15, v0, :cond_29c

    .line 1285
    const/4 v13, -0x1

    .line 1286
    .local v13, "newActivePointer":I
    invoke-static/range {p1 .. p1}, Landroid/support/v4/view/MotionEventCompat;->getPointerCount(Landroid/view/MotionEvent;)I

    move-result v14

    .line 1287
    .restart local v14    # "pointerCount":I
    const/4 v8, 0x0

    .restart local v8    # "i":I
    :goto_23e
    if-ge v8, v14, :cond_293

    .line 1288
    move-object/from16 v0, p1

    invoke-static {v0, v8}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v9

    .line 1289
    .local v9, "id":I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    move/from16 v19, v0

    move/from16 v0, v19

    if-ne v9, v0, :cond_253

    .line 1287
    :cond_250
    add-int/lit8 v8, v8, 0x1

    goto :goto_23e

    .line 1294
    :cond_253
    move-object/from16 v0, p1

    invoke-static {v0, v8}, Landroid/support/v4/view/MotionEventCompat;->getX(Landroid/view/MotionEvent;I)F

    move-result v17

    .line 1295
    .restart local v17    # "x":F
    move-object/from16 v0, p1

    invoke-static {v0, v8}, Landroid/support/v4/view/MotionEventCompat;->getY(Landroid/view/MotionEvent;I)F

    move-result v18

    .line 1296
    .restart local v18    # "y":F
    move/from16 v0, v17

    float-to-int v0, v0

    move/from16 v19, v0

    move/from16 v0, v18

    float-to-int v0, v0

    move/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object v19

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    move-object/from16 v20, v0

    move-object/from16 v0, v19

    move-object/from16 v1, v20

    if-ne v0, v1, :cond_250

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    move-object/from16 v19, v0

    .line 1297
    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1, v9}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->tryCaptureViewForDrag(Landroid/view/View;I)Z

    move-result v19

    if-eqz v19, :cond_250

    .line 1298
    move-object/from16 v0, p0

    iget v13, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 1303
    .end local v9    # "id":I
    .end local v17    # "x":F
    .end local v18    # "y":F
    :cond_293
    const/16 v19, -0x1

    move/from16 v0, v19

    if-ne v13, v0, :cond_29c

    .line 1306
    invoke-direct/range {p0 .. p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->releaseViewForPointerUp()V

    .line 1309
    .end local v8    # "i":I
    .end local v13    # "newActivePointer":I
    .end local v14    # "pointerCount":I
    :cond_29c
    move-object/from16 v0, p0

    invoke-direct {v0, v15}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->clearMotionHistory(I)V

    goto/16 :goto_2a

    .line 1314
    .end local v15    # "pointerId":I
    :pswitch_2a3
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    move/from16 v19, v0

    const/16 v20, 0x1

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_2b4

    .line 1315
    invoke-direct/range {p0 .. p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->releaseViewForPointerUp()V

    .line 1317
    :cond_2b4
    invoke-virtual/range {p0 .. p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->cancel()V

    goto/16 :goto_2a

    .line 1322
    :pswitch_2b9
    move-object/from16 v0, p0

    iget v0, v0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    move/from16 v19, v0

    const/16 v20, 0x1

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_2d4

    .line 1323
    const/16 v19, 0x0

    const/16 v20, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-direct {v0, v1, v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->dispatchViewReleased(FF)V

    .line 1325
    :cond_2d4
    invoke-virtual/range {p0 .. p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->cancel()V

    goto/16 :goto_2a

    .line 1188
    nop

    :pswitch_data_2da
    .packed-switch 0x0
        :pswitch_4c
        :pswitch_2a3
        :pswitch_136
        :pswitch_2b9
        :pswitch_2a
        :pswitch_aa
        :pswitch_21a
    .end packed-switch
.end method

.method public removeIgnoredView(Landroid/view/View;)V
    .registers 3
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 1354
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIgnoredViews:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 1355
    return-void
.end method

.method setDragState(I)V
    .registers 3
    .param p1, "state"    # I

    .prologue
    .line 960
    iget v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    if-eq v0, p1, :cond_10

    .line 961
    iput p1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    .line 962
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v0, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onViewDragStateChanged(I)V

    .line 963
    if-nez p1, :cond_10

    .line 964
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    .line 967
    :cond_10
    return-void
.end method

.method public setEdgeSize(I)V
    .registers 2
    .param p1, "size"    # I

    .prologue
    .line 523
    iput p1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mEdgeSize:I

    .line 524
    return-void
.end method

.method public setEdgeTrackingEnabled(I)V
    .registers 2
    .param p1, "edgeFlags"    # I

    .prologue
    .line 500
    iput p1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    .line 501
    return-void
.end method

.method public setMinVelocity(F)V
    .registers 2
    .param p1, "minVel"    # F

    .prologue
    .line 459
    iput p1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mMinVelocity:F

    .line 460
    return-void
.end method

.method public setSensitivity(Landroid/content/Context;F)V
    .registers 8
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "sensitivity"    # F

    .prologue
    const/high16 v4, 0x3f800000

    .line 446
    const/4 v2, 0x0

    invoke-static {v4, p2}, Ljava/lang/Math;->min(FF)F

    move-result v3

    invoke-static {v2, v3}, Ljava/lang/Math;->max(FF)F

    move-result v0

    .line 447
    .local v0, "s":F
    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v1

    .line 448
    .local v1, "viewConfiguration":Landroid/view/ViewConfiguration;
    invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v2

    int-to-float v2, v2

    div-float v3, v4, v0

    mul-float/2addr v2, v3

    float-to-int v2, v2

    iput v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTouchSlop:I

    .line 449
    return-void
.end method

.method public settleCapturedViewAt(II)Z
    .registers 6
    .param p1, "finalLeft"    # I
    .param p2, "finalTop"    # I

    .prologue
    .line 644
    iget-boolean v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mReleaseInProgress:Z

    if-nez v0, :cond_c

    .line 645
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Cannot settleCapturedViewAt outside of a call to Callback#onViewReleased"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 649
    :cond_c
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    iget v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 650
    invoke-static {v0, v1}, Landroid/support/v4/view/VelocityTrackerCompat;->getXVelocity(Landroid/view/VelocityTracker;I)F

    move-result v0

    float-to-int v0, v0

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    iget v2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 651
    invoke-static {v1, v2}, Landroid/support/v4/view/VelocityTrackerCompat;->getYVelocity(Landroid/view/VelocityTracker;I)F

    move-result v1

    float-to-int v1, v1

    .line 649
    invoke-direct {p0, p1, p2, v0, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->forceSettleCapturedViewAt(IIII)Z

    move-result v0

    return v0
.end method

.method public shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 15
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 1045
    invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionMasked(Landroid/view/MotionEvent;)I

    move-result v0

    .line 1046
    .local v0, "action":I
    invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionIndex(Landroid/view/MotionEvent;)I

    move-result v1

    .line 1048
    .local v1, "actionIndex":I
    iget-boolean v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIsUnableToDrag:Z

    if-eqz v11, :cond_17

    .line 1049
    const/4 v11, 0x3

    if-eq v0, v11, :cond_12

    const/4 v11, 0x1

    if-ne v0, v11, :cond_15

    .line 1050
    :cond_12
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->cancel()V

    .line 1052
    :cond_15
    const/4 v11, 0x0

    .line 1160
    :goto_16
    return v11

    .line 1055
    :cond_17
    if-nez v0, :cond_1c

    .line 1058
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->cancel()V

    .line 1061
    :cond_1c
    packed-switch v0, :pswitch_data_108

    .line 1152
    :cond_1f
    :goto_1f
    :pswitch_1f
    iget-boolean v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIsUnableToDrag:Z

    if-nez v11, :cond_32

    .line 1153
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    if-nez v11, :cond_2d

    .line 1154
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v11

    iput-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 1156
    :cond_2d
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mVelocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v11, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 1160
    :cond_32
    iget v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    const/4 v12, 0x1

    if-ne v11, v12, :cond_105

    iget-boolean v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIsUnableToDrag:Z

    if-nez v11, :cond_105

    const/4 v11, 0x1

    goto :goto_16

    .line 1063
    :pswitch_3d
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v9

    .line 1064
    .local v9, "x":F
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v10

    .line 1065
    .local v10, "y":F
    const/4 v11, 0x0

    invoke-static {p1, v11}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v7

    .line 1066
    .local v7, "pointerId":I
    invoke-direct {p0, v9, v10, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->saveInitialMotion(FFI)V

    .line 1068
    invoke-direct {p0, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->isInIgnoredView(Landroid/view/MotionEvent;)Z

    move-result v11

    if-eqz v11, :cond_57

    .line 1069
    const/4 v11, 0x1

    iput-boolean v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mIsUnableToDrag:Z

    goto :goto_1f

    .line 1073
    :cond_57
    float-to-int v11, v9

    float-to-int v12, v10

    invoke-virtual {p0, v11, v12}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object v8

    .line 1076
    .local v8, "toCapture":Landroid/view/View;
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    if-ne v8, v11, :cond_69

    iget v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    const/4 v12, 0x2

    if-ne v11, v12, :cond_69

    .line 1077
    invoke-virtual {p0, v8, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->tryCaptureViewForDrag(Landroid/view/View;I)Z

    .line 1080
    :cond_69
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    aget v4, v11, v7

    .line 1081
    .local v4, "edgesTouched":I
    iget v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    and-int/2addr v11, v4

    if-eqz v11, :cond_1f

    .line 1082
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    iget v12, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    and-int/2addr v12, v4

    invoke-virtual {v11, v12, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onEdgeTouched(II)V

    goto :goto_1f

    .line 1088
    .end local v4    # "edgesTouched":I
    .end local v7    # "pointerId":I
    .end local v8    # "toCapture":Landroid/view/View;
    .end local v9    # "x":F
    .end local v10    # "y":F
    :pswitch_7b
    invoke-static {p1, v1}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v7

    .line 1089
    .restart local v7    # "pointerId":I
    invoke-static {p1, v1}, Landroid/support/v4/view/MotionEventCompat;->getX(Landroid/view/MotionEvent;I)F

    move-result v9

    .line 1090
    .restart local v9    # "x":F
    invoke-static {p1, v1}, Landroid/support/v4/view/MotionEventCompat;->getY(Landroid/view/MotionEvent;I)F

    move-result v10

    .line 1092
    .restart local v10    # "y":F
    invoke-direct {p0, v9, v10, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->saveInitialMotion(FFI)V

    .line 1095
    iget v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    if-nez v11, :cond_a0

    .line 1096
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialEdgesTouched:[I

    aget v4, v11, v7

    .line 1097
    .restart local v4    # "edgesTouched":I
    iget v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    and-int/2addr v11, v4

    if-eqz v11, :cond_1f

    .line 1098
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    iget v12, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mTrackingEdges:I

    and-int/2addr v12, v4

    invoke-virtual {v11, v12, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->onEdgeTouched(II)V

    goto :goto_1f

    .line 1100
    .end local v4    # "edgesTouched":I
    :cond_a0
    iget v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    const/4 v12, 0x2

    if-ne v11, v12, :cond_1f

    .line 1102
    float-to-int v11, v9

    float-to-int v12, v10

    invoke-virtual {p0, v11, v12}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object v8

    .line 1103
    .restart local v8    # "toCapture":Landroid/view/View;
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    if-ne v8, v11, :cond_1f

    .line 1104
    invoke-virtual {p0, v8, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->tryCaptureViewForDrag(Landroid/view/View;I)Z

    goto/16 :goto_1f

    .line 1113
    .end local v7    # "pointerId":I
    .end local v8    # "toCapture":Landroid/view/View;
    .end local v9    # "x":F
    .end local v10    # "y":F
    :pswitch_b4
    invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getPointerCount(Landroid/view/MotionEvent;)I

    move-result v6

    .line 1114
    .local v6, "pointerCount":I
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_b9
    if-ge v5, v6, :cond_db

    .line 1115
    invoke-static {p1, v5}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v7

    .line 1116
    .restart local v7    # "pointerId":I
    invoke-static {p1, v5}, Landroid/support/v4/view/MotionEventCompat;->getX(Landroid/view/MotionEvent;I)F

    move-result v9

    .line 1117
    .restart local v9    # "x":F
    invoke-static {p1, v5}, Landroid/support/v4/view/MotionEventCompat;->getY(Landroid/view/MotionEvent;I)F

    move-result v10

    .line 1118
    .restart local v10    # "y":F
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionX:[F

    aget v11, v11, v7

    sub-float v2, v9, v11

    .line 1119
    .local v2, "dx":F
    iget-object v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mInitialMotionY:[F

    aget v11, v11, v7

    sub-float v3, v10, v11

    .line 1121
    .local v3, "dy":F
    invoke-direct {p0, v2, v3, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->reportNewEdgeDrags(FFI)V

    .line 1122
    iget v11, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mDragState:I

    const/4 v12, 0x1

    if-ne v11, v12, :cond_e0

    .line 1133
    .end local v2    # "dx":F
    .end local v3    # "dy":F
    .end local v7    # "pointerId":I
    .end local v9    # "x":F
    .end local v10    # "y":F
    :cond_db
    invoke-direct {p0, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->saveLastMotion(Landroid/view/MotionEvent;)V

    goto/16 :goto_1f

    .line 1127
    .restart local v2    # "dx":F
    .restart local v3    # "dy":F
    .restart local v7    # "pointerId":I
    .restart local v9    # "x":F
    .restart local v10    # "y":F
    :cond_e0
    float-to-int v11, v9

    float-to-int v12, v10

    invoke-virtual {p0, v11, v12}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object v8

    .line 1128
    .restart local v8    # "toCapture":Landroid/view/View;
    if-eqz v8, :cond_f4

    invoke-direct {p0, v8, v2, v3}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->checkTouchSlop(Landroid/view/View;FF)Z

    move-result v11

    if-eqz v11, :cond_f4

    .line 1129
    invoke-virtual {p0, v8, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->tryCaptureViewForDrag(Landroid/view/View;I)Z

    move-result v11

    if-nez v11, :cond_db

    .line 1114
    :cond_f4
    add-int/lit8 v5, v5, 0x1

    goto :goto_b9

    .line 1138
    .end local v2    # "dx":F
    .end local v3    # "dy":F
    .end local v5    # "i":I
    .end local v6    # "pointerCount":I
    .end local v7    # "pointerId":I
    .end local v8    # "toCapture":Landroid/view/View;
    .end local v9    # "x":F
    .end local v10    # "y":F
    :pswitch_f7
    invoke-static {p1, v1}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v7

    .line 1139
    .restart local v7    # "pointerId":I
    invoke-direct {p0, v7}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->clearMotionHistory(I)V

    goto/16 :goto_1f

    .line 1145
    .end local v7    # "pointerId":I
    :pswitch_100
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->cancel()V

    goto/16 :goto_1f

    .line 1160
    :cond_105
    const/4 v11, 0x0

    goto/16 :goto_16

    .line 1061
    :pswitch_data_108
    .packed-switch 0x0
        :pswitch_3d
        :pswitch_100
        :pswitch_b4
        :pswitch_100
        :pswitch_1f
        :pswitch_7b
        :pswitch_f7
    .end packed-switch
.end method

.method public smoothSlideViewTo(Landroid/view/View;II)Z
    .registers 6
    .param p1, "child"    # Landroid/view/View;
    .param p2, "finalLeft"    # I
    .param p3, "finalTop"    # I

    .prologue
    const/4 v1, 0x0

    .line 624
    iput-object p1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    .line 625
    const/4 v0, -0x1

    iput v0, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 627
    invoke-direct {p0, p2, p3, v1, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->forceSettleCapturedViewAt(IIII)Z

    move-result v0

    return v0
.end method

.method tryCaptureViewForDrag(Landroid/view/View;I)Z
    .registers 5
    .param p1, "toCapture"    # Landroid/view/View;
    .param p2, "pointerId"    # I

    .prologue
    const/4 v0, 0x1

    .line 980
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCapturedView:Landroid/view/View;

    if-ne p1, v1, :cond_a

    iget v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    if-ne v1, p2, :cond_a

    .line 989
    :goto_9
    return v0

    .line 984
    :cond_a
    if-eqz p1, :cond_1a

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mCallback:Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;

    invoke-virtual {v1, p1, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;->tryCaptureView(Landroid/view/View;I)Z

    move-result v1

    if-eqz v1, :cond_1a

    .line 985
    iput p2, p0, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->mActivePointerId:I

    .line 986
    invoke-virtual {p0, p1, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->captureChildView(Landroid/view/View;I)V

    goto :goto_9

    .line 989
    :cond_1a
    const/4 v0, 0x0

    goto :goto_9
.end method
